//
//  LJMRankSubRoot_Soner_First_TableViewCell.m
//  wind
//
//  Created by 李金明 on 16/1/13.
//  Copyright © 2016年 李金明. All rights reserved.
//

#import "LJMRankSubRoot_Soner_First_TableViewCell.h"

@implementation LJMRankSubRoot_Soner_First_TableViewCell

- (void)setLabStr:(NSString *)labStr
{
    if (_labStr != labStr) {
        [_labStr release];
        _labStr = [labStr retain];
    }
    
//    CGFloat height = [LJMAdaption_Height_Width heightWithStr:labStr width:self.bounds.size.width - 20 NSInter:16.0];

    [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).offset(10);
        make.left.equalTo(self.mas_left).offset(10);
        make.right.equalTo(self.mas_right).offset(-10);
        make.bottom.mas_equalTo(self.mas_bottom);
    }];

}

- (void)dealloc
{
    [_label release];
    [_labStr release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatView];
    }
    return self;
}
- (void)creatView
{
    self.backgroundColor = [UIColor whiteColor];
    self.label = [[UILabel alloc] init];
    self.label.font = [UIFont systemFontOfSize:16.0];
    self.label.backgroundColor = [UIColor whiteColor];
    self.label.textColor = [UIColor blackColor];
    self.label.numberOfLines = 0;
    [self.contentView addSubview:self.label];
    [_label release];

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
